xend: Fix PAM authentication method for some versions of PyPAM.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 25 May 2007 12:02:08 +0000 (13:02 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 25 May 2007 12:02:08 +0000 (13:02 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
tools/python/xen/xend/XendAuthSessions.py

index 769c66f3facb6a1fec9b4af2312d7273c1ae23d4..fb28e3f0ba15cb9c5ee0019f29f682a9483cf240 100644 (file)
@@ -87,7 +87,7 @@ class XendAuthSessions:
         pam_auth.start("login")
         pam_auth.set_item(PAM.PAM_USER, username)
 
-        def _pam_conv(auth, query_list, user_data):
+        def _pam_conv(auth, query_list, user_data = None):
             resp = []
             for i in range(len(query_list)):
                 query, qtype = query_list[i]